/**
 * @FileName: KnowledgeExceptions.java
 * @Package: com.ziroom.zmc.services.knowledge.exception
 * @author youshipeng
 * @created 2016/11/14 16:23
 * <p>
 * Copyright 2016 ziroom
 */
package top.swimmer.tools.exception;

/**
 * <p></p>
 *
 * <PRE>
 * <BR>	修改记录
 * <BR>-----------------------------------------------
 * <BR>	修改日期			修改人			修改内容
 * </PRE>
 *
 * @author youshipeng
 * @since 1.0
 * @version 1.0
 */
public interface BaseExceptions {
    BaseExceptions INSTANCE = ExceptionProxy.newProxyInstance(BaseExceptions.class);

    /* core errors */
    @ExceptionDef(code = 500, message = "{0}")
    BaseException common(String message);

    @ExceptionDef(code = 500, message = "{0}")
    BaseException common(Throwable throwable, String message);

}